<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>
<title>Parent Informer RCSHS - 403 Access Denied</title>
<link rel=stylesheet href="/parentinformerrcshs/css-layouts/themes/defaulttheme.css" type="text/css">
<link rel=stylesheet href="/parentinformerrcshs/css-layouts/headlinks.css" type="text/css">
</head>

<body>

<div id="mainhead"><br><br><br></div>

<?php

 mysql_connect("localhost", "root", "") or die(mysql_error()); 
 mysql_select_db("pinfdbshs") or die(mysql_error()); 

 //Checks if there is a login cookie
 if(isset($_COOKIE["parentinformerprcshs"]) || isset($_COOKIE["parentinformerurcshs"])) { 
  if(isset($_COOKIE["parentinformerprcshs"])) {
   $username = $_COOKIE["parentinformerprcshs"]; 
  }
  $pass = $_COOKIE["parentinformerurcshs"];
  $check = mysql_query("SELECT * FROM logtbl WHERE usernm = '".$username."'") or die(mysql_error());
  while($info=mysql_fetch_array($check)) {
   if ($pass!=$info['pwrnd']) {

?>

<span align=left>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Cookies cannot be retrieved ||
<a href="/parentinformerrcshs">Sign In</a>
</span>

<?php

   }
   else {

?>

<p class="leftnav">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Logged in as: <?php echo $_COOKIE["parentinformerprcshs"]; ?>
</p>

<p class="rightnav">

<?php

if($info['priv']==1) {
 echo "<a href='/parentinformerrcshs/modules/acctmgnt'>Account Management</a> || ";
}

?>
<a href="/parentinformerrcshs/modules/settings">Settings</a> || <a href="/parentinformerrcshs/modules/redirout.php">Logout</a>
</p>

<?php

   }
  }
 }
 else {

?>

<span align=left>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Not logged in ||
<a href="/parentinformerrcshs">Sign In</a>
</span>

<?php

 }
 
?>

<hr style="clear: both;"><br>

<center>
<font id="heading">ACCESS DENIED</font>
</center>
<br>

<p align="left">
Sorry. You are forbidden to access this part of the site.<br>
You will be redirected to the main page in 5 seconds, or<br>
click <a href="/parentinformerrcshs">here</a>.
<br><br>
<img src="/parentinformerrcshs/img/prgbar.gif" alt="Bar Loader"> 
</p>

<br>

<div class="footnav" align=center>

<hr>

<a href="/parentinformerrcshs">Main Page</a> ||
<a href="#">Help</a> ||
<a href="#">Disclaimer</a> ||
<a href="/parentinformerrcshs/externalaffairs/links.php">Links</a> ||
<a href="#">About</a>
<br>

<span id="copyme">
&copy; 2011 Roosevelt College Science High School. All rights reserved.
</span>

</div>

<script type="text/javascript">
<!--

/*
 Count down then redirect script 2
 By William Kemper (kemperwilliam@hotmail.com)
 For this script and more, visit http://javascriptkit.com
*/

//specify redirect url
var redirecturl="/parentinformerrcshs";

//specify pause duration before redirection (in seconds)
var pausefor=5;

//DONE EDITING

function postaction() {
 if (window.timer) {
  clearInterval(timer);
  clearInterval(timer_2);
 }
 window.location=redirecturl;
}

setTimeout("postaction()",pausefor*1000);

//-->
</script>

</body>

</html>